package l1j.server.server.clientpackets;



import l1j.server.echo.ClientThread;

import java.util.logging.Level;
import java.util.logging.Logger;
// Referenced classes of package l1j.server.server.clientpackets:
// ClientBasePacket

public class C_KeepALIVE extends ClientBasePacket {
	private static final String C_KEEP_ALIVE = "[C] C_KeepALIVE";
	private static final Logger _log = Logger.getLogger(C_KeepALIVE.class.getName());
	@Override
	public String getType() {
		return C_KEEP_ALIVE;
	}

	@Override
	public void start(final byte[] decrypt, final ClientThread client) {
		try {
			// 資料載入
			this.read(decrypt);
			// XXX:GameTimeを送信（3バイトのデータを送って来ているのでそれを何かに利用しないといけないかもしれない）
			//System.out.println(readH());
			//final long nowTime = System.currentTimeMillis();
			//L1PcInstance pc = client.getActiveChar();
			//final long lastTime = pc.Timetime;
			//System.out.println("延遲:"+(nowTime-lastTime));
			//pc.Timetime = nowTime;
			// pc.Timetime = new Timestamp(System.currentTimeMillis());
			// pc.sendPackets(new S_GameTime());
			//	client.packetReceived();

		} catch (final Exception e) {
			_log.log(Level.SEVERE, e.getLocalizedMessage(), e);

		} finally {
			this.over();
		}
	}
}